home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
misc
/
a-d
/
3.0iupdate
/
macros.lha
/
GotoMasterPage.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-12-20
|
721b
|
26 lines
/* $VER: GotoMasterPage.rexx 1.1a (20.12.95)
Copyright 1995 Soft-Logik Publishing Corporation
May not be distributed without Soft-Logik Publishing Corporation's express written permission */
OPTIONS RESULTS
ADDRESS 'PAGESTREAM'
'currentpage'
if result<1 then do /* current page is a master page */
'display page lastused'
end
else do /* current page is a normal page */
'currentmasterpage'
mpname=result
'getdimensions 'stem' masterpage "'mpname'"'
if stem.sides='SINGLE' then mpname=mpname||':right'
if stem.sides='DOUBLE' then do
'currentpage'
pagenum=result
if pagenum/2=trunc(pagenum/2) then mpname=mpname||':left'
else mpname=mpname||':right'
end
'display mpg "'mpname'"'
end